setExitSharedElementCallback
open fun setExitSharedElementCallback(@NonNull activity: Activity, @Nullable callback: SharedElementCallback)(source)
When makeSceneTransitionAnimation was used to start an Activity, callback will be called to handle shared elements on the launching Activity. Most calls will only come when returning from the started Activity. This requires FEATURE_CONTENT_TRANSITIONS.
Parameters
activity
activity for which to set the callback.
callback
Used to manipulate shared element transitions on the launching Activity.